package com.zmc.third.feign;

import com.zmc.common.domain.resp.freight.FreightCreateOrderFeignResp;
import com.zmc.common.utils.R;
import com.zmc.common.vo.OrderPayInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author：zmc
 * @Date：2024/11/9 9:44
 */

@FeignClient("mall-order")
public interface OrderFeignService {

    /**
     * 通过订单号获取支付信息
     * */
    @PostMapping("/order/pay/info")
    public R getPayInfoByOrderNo(@RequestBody OrderPayInfoVo vo);

    /**
     * 物流单签收，更新订单状态为已完成
     * */
    @PostMapping("/order/confirm/receive")
    public R freightSignComplete(@RequestBody OrderPayInfoVo vo);

}
